package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.xiaowuRecall.XiaowuRecallComb;
import com.yanqu.road.entity.activity.xiaowuRecall.XiaowuRecallText;
import com.yanqu.road.entity.activity.xiaowuRecall.XiaowuRecallUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class XiaowuRecallBusiness {

    public static XiaowuRecallUserData getXiaowuRecallUserData(int activityId, long userId) {
        return DaoHelper.getXiaowuRecallUserDataDaoImpl().getXiaowuRecallUserData(activityId, userId);
    }

    public static boolean addXiaowuRecallUserData(XiaowuRecallUserData userData) {
        return DaoHelper.getXiaowuRecallUserDataDaoImpl().add(userData);
    }

    public static Map<Long, XiaowuRecallUserData> getAutoRewardUserDataMap(int activityId) {
        return DaoHelper.getXiaowuRecallUserDataDaoImpl().getAutoRewardUserDataMap(activityId);
    }

    public static boolean updateXiaowuRecallUserData(XiaowuRecallUserData userData) {
        return DaoHelper.getXiaowuRecallUserDataDaoImpl().update(userData);
    }

    public static List<XiaowuRecallComb> getXiaowuRecallComb(int activityId) {
        return DaoHelper.getXiaowuRecallConfigDaoImpl().getXiaowuRecallCombList(activityId);
    }

    public static List<XiaowuRecallText> getXiaowuRecallText(int activityId) {
        return DaoHelper.getXiaowuRecallConfigDaoImpl().getXiaowuRecallTextList(activityId);
    }

}
